﻿using DAL.Database.Db;
using Infra.Tools.Logging;
using System;

namespace BLL.Service
{
    public interface IRepositoryFactory
    {
        IRepository<T> Create<T>()
            where T : class, new();
        IRepository<T> Create<T>(string connectionstring)
            where T : class, new();

        IRepository<T> Create<T>(ILogger logger)
            where T : class, new();

        IRepository<T> Create<T>(string connectionstring, ILogger logger)
            where T : class, new();
    }
}
